# -*- coding:UTF-8 -*- ＃
#!/usr/bin/python
'''
Created on 2013-5-2

@author: YANGCHENLONG
'''
from xml.etree import ElementTree
from com.xdtech.python.util import PathUtil

class ImageUtil(object):
    '''
    XML读写
    '''


    def __init__(self):
        '''
        Constructor
        '''
        pass
    
    def readXmlFile(self, filePath):
        # 加载XML文件
        root = ElementTree.parse(PathUtil.findFile(filePath))
        node = root.find("/Website")
        print(node)
    
if __name__ == '__main__':
    #print(sys.argv[1])
    #listFile(sys.argv[1])
    img = ImageUtil()
    file = PathUtil.findFile("BaiduNewsRule.xml")
    print(file)
    img.readXmlFile(file)
    